package a.f.l.a;

import a.c.z;
import a.d.t;
import a.f.d.a.jc;
import a.f.d.a.kc;
import a.f.d.a.n;
import a.f.d.a.pc;

import java.util.Comparator;
import java.util.Iterator;

class v
  extends u
{
  public void a(qb paramqb, s params)
  {
    boolean bool = sb.e;
    int k = sb.d;
    super.a(paramqb, params);
    kc localkc = kc.d(paramqb.a());
    if ((bool) || (localkc != null))
    {
      z localz1 = localkc.f();
      z localz2 = localkc.e();
      localz1.a(new Comparator()
      {
        public int compare(Object paramAnonymousObject1, Object paramAnonymousObject2)
        {
          boolean bool = sb.e;
          double d1 = ((n)paramAnonymousObject1).g();
          double d2 = ((n)paramAnonymousObject2).g();
          if (!bool) {
            if (d1 < d2) {
              return -1;
            }
          }
          if (!bool) {
            if (d1 > d2) {
              return 1;
            }
          }
          return 0;
        }
      });
      localz2.a(new Comparator()
      {
        public int compare(Object paramAnonymousObject1, Object paramAnonymousObject2)
        {
          boolean bool = sb.e;
          double d1 = ((pc)paramAnonymousObject1).f();
          double d2 = ((pc)paramAnonymousObject2).f();
          if (!bool) {
            if (d1 < d2) {
              return -1;
            }
          }
          if (!bool) {
            if (d1 > d2) {
              return 1;
            }
          }
          return 0;
        }
      });
      Object localObject1 = null;
      int i = 0;
      int j = 0;
      Iterator localIterator1 = localz1.iterator();
      label285:
      do
      {
        if (!localIterator1.hasNext()) {
          break;
        }
        n localn = (n)localIterator1.next();
        double d1 = localObject1 != null ? localObject1.h() + localObject1.e() : localn.g();
        double d2 = localn.f();
        Object localObject2 = null;
        Iterator localIterator2 = localz2.iterator();
        do
        {
          do
          {
            if (!localIterator2.hasNext()) {
              break label285;
            }
            pc localpc = (pc)localIterator2.next();
            if (k != 0) {
              break;
            }
            double d3 = localObject2 != null ? localObject2.h() + localObject2.e() : localpc.f();
            double d4 = localpc.g();
            jc localjc = localkc.a(localpc, localn);
            b().a(new t(d1, d3, d2, d4), new c_(localjc, j, i, null));
            localpc.g(d3);
            localpc.d(d4);
            localObject2 = localpc;
            i++;
          } while (k == 0);
          localn.g(d1);
          localn.d(d2);
          localObject1 = localn;
          j++;
          i = 0;
        } while (bool);
      } while (k == 0);
    }
  }
  
  public void b(mb parammb)
  {
    boolean bool = sb.e;
    int i = sb.d;
    Iterator localIterator = b().e(parammb).iterator();
    do
    {
      do
      {
        hb localhb;
        do
        {
          if (!localIterator.hasNext()) {
            break;
          }
          localhb = (hb)localIterator.next();
        } while (!(localhb.b() instanceof c_));
        c_ localc_ = (c_)localhb.b();
        parammb.a(nb.e, localc_.d);
        parammb.a(nb.f, new Integer(localc_.a));
        parammb.a(nb.g, new Integer(localc_.c));
      } while (bool);
    } while (i == 0);
  }
  
  private static class c_
  {
    private final int a;
    private final int c;
    private final jc d;
    
    private c_(jc paramjc, int paramInt1, int paramInt2)
    {
      this.d = paramjc;
      this.c = paramInt1;
      this.a = paramInt2;
    }
    
    c_(jc paramjc, int paramInt1, int paramInt2, v.1 param1)
    {
      this(paramjc, paramInt1, paramInt2);
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.l.a.v

 * JD-Core Version:    0.7.0.1

 */